<?php
//No direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class OwnserviceViewLogin extends JView
{
	function display($tpl=null){

		//Initialise variables
		$mainframe = &JFactory::getApplication();
		$user = & JFactory::getUser();
		$session = &JFactory::getSession();
		$document = & JFactory::getDocument();
		$pathway	=& $mainframe->getPathway();
		$params = & $mainframe->getParams('com_ownservice');

		//add css to document
		$document->addStyleSheet(JURI::base().'components/com_ownservice/assets/css/style.css');

		$title = JText::_( 'Login');
		// Set param title
		$params->set('page_title',	$title);
		// pathway item
		//$pathway->addItem($title, '');
		// Set page title
		$document->setTitle( $title );

		$return = JRoute::_('index.php?option=com_ownservice');

		$this->assignRef('return', base64_encode($return));
		$this->assignRef('params', $params);

		parent::display($tpl);
	}
}